{if $user_profile->username eq $user->username}

    <p><h2>Posta in arrivo</h2></p>
    <table id="message_header" width="626" border="0">
        <tbody>
            <tr>
                <td id="bar" class="bar" height="17" colspan="2">Messaggi</td>
            </tr>
        </tbody>
    </table>
    {if isset($mode) && $mode eq "view"}
        {include file="{$TEMPLATES_URL}profile_pm_view.tpl"}
    {else}
        {include file="{$TEMPLATES_URL}profile_pm_summary.tpl"}
    {/if}
{else}
    {include file="{$TEMPLATES_URL}profile_summary.tpl"}
{/if}